package com.jwgf.sdcard;

import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;

import android.os.Bundle;

public class StorageInterface {
	public class Dev {
		public static final int SD = 0;
		public static final int USB = 1;
	}

	public class Operation {
		public static final int CHECK_DEV = 0;
		public static final int REBOOT = 1;
		public static final int UPGRADE = 2;
		public static final int DUMP_LOG = 4;
	}

	public static String KEY = "para";
	
	//update 
	public static String EXTERNAL_UPDATE_PATH = "/sdfuse";
	public static String INTERNAL_UPDATE_PATH = "/mnt/sdcard/sdfuse";
	public static String VERSION_FILE = "/version.txt";
	public static String[] UPGRADE_FILES = { "checksum.md5",
			"ramdisk-uboot.img", "sdfuse.txt", "system.img", "u-boot.bin",
			"version.txt", "zImage" };
	public static Set<String> upgradeFileSet = new HashSet<String>(
			Arrays.asList(UPGRADE_FILES));
	
	//backup
	public static String SHARED_PREFERENCE = "/shared_prefs";
	public static String SQL_DATABASE = "/databases";

	public interface SDMsgRecvListener {
		void OnSDMsgRecv(int dev, int op, Bundle bundle);
	}

	public static final String SD_SERVICE_FILTER_NAME = "com.jwgf.sdservice.SDService.messenger";
	public static final String SD_SERVICE_COMPONENT_NAME = "com.jwgf.sdservice.SDService";

}
